Set TTS to Play the Defined Voice

  • Function:

    magicbox.set_tts_play(port, text)
    
  • Description: play Chinese characters, letters and numbers in a text-to-speech manner

  • Required parameter:

    • port: controller port (the value is 2)
    • text: text-to-speech strings. data type: int, range: Chinese characters, letters and numbers (English is not supported)
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_tts_play(port=2, text="你好")
    

    The text-to-speech module connected to Port 2 of controller plays "你好".

results matching ""

    No results matching ""